#region Using directives
using System;
using System.Data;
using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{
	//=========MCity  ============================
	[System.ComponentModel.DesignerCategory("Code")]
    public class MCityDEL : DataSet, IDataEntity
	{
		//=========mCity ============================
		public const string TABLENAME_MCITY="mCity";
		public const string RECID="RecId";
		public const string CITYNO="CityNo";
		public const string CITYDESC="CityDesc";
		public const string RECSTAMP = "RecStamp";
		public const string COUNTYNO="CountyNo";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

		public MCityDEL()
		{
			//Create mCity structure
			CreatemCityStructure();

		}

		//=========mCity============================
		private void CreatemCityStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MCITY);
			DCC=table.Columns;

			DC=new DataColumn(RECID,typeof(System.Int32));
			DCC.Add(DC);

			DC=new DataColumn(CITYNO,typeof(System.String));
            DC.MaxLength = 3;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(CITYDESC,typeof(System.String));
            DC.MaxLength = 20;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC = new DataColumn(RECSTAMP,typeof(System.Byte[]));
			DCC.Add(DC);

			DC=new DataColumn(COUNTYNO,typeof(System.String));
            DC.MaxLength = 4;
            DC.DefaultValue = "";
			DCC.Add(DC);

			this.Tables.Add (table);
		}

	}
}